<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="language" content="en" />

	<!-- blueprint CSS framework -->
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/src/reset.css" media="screen, projection" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/screen.css" media="screen, projection" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/print.css" media="print" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/src/forms.css" media="screen, projection" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/src/grid.css" media="screen, projection" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/src/typography.css" media="screen, projection" />
	<!--[if lt IE 8]>
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/ie.css" media="screen, projection" />
	<![endif]-->
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/custom.css" media="screen, projection" />
	<?php Yii::app()->clientScript->registerCoreScript('jquery'); ?>
	<?php cs()->registerScriptFile(js().'custom.js'); ?>
	<title><?php echo CHtml::encode($this->pageTitle); ?></title>
</head>

<body>

<div class="container" id="page">
	<div id="topbar" class="span-24 last">
		<span>
			<?php
			if(isset(user()->id)){
				importUc();
				echo	uc_user_synlogin(user()->id);
				echo "尊敬的".user()->name.",今天是".date('Y年m月d日')."&nbsp;&nbsp;[".l('注销',array('/user/logout'),array('style'=>'color:red;'))."]";
				}else{
				importUc();
				echo uc_user_synlogout();
				echo l('点击这里登录',array('/user/login'))."&nbsp;&nbsp;如果您还没有注册，".l('点击这里成为我们的会员',bu().'/uhome/do.php?ac=3c7495bde72b124b806ed64fb89785db',array('target'=>'_blank'));
				}
			?>
		</span>
	</div>
	<div id="header" class="span-24 last">
		<h2 class="span-6"><a href='<?=bu()?>'><img src="<?=image()?>logo.jpg" /></a></h2>
		<div class="inp span-10">
			<form action="<?=$this->createUrl('/book/search')?>" method="post">
        		<span><input name="search_text" type="text" title="" size="22" maxlength="60" value="" style="color: rgb(0, 0, 0); "></span>
    			<input type="hidden" name="cat" value="1001">
   		    <span><input class="bn-srh" type="submit" value="搜索"></span>
   		    </form>
   		 </div>
   		 <div class="site-nav-items span-8 last">
       		 <ul>
                    <li><a href="<?=bu().'/uhome'?>">UrSky社区</a></li><li>|</li>
                    <li><a href="<?=$this->createUrl('/book')?>">UrSky书榜</a></li><li>|</li>
        			</ul>
    			</div>
	</div><!-- header -->

	<div class="span-24 last" id="breadcrumbs">
			<?php $this->widget('zii.widgets.CBreadcrumbs', array(
		'homeLink'=>l('频道首页',array('/')),
		'links'=>$this->breadcrumbs,
	)); ?><!-- breadcrumbs -->
	</div>
	<hr/>
	<?php if(hf('warning')):?>
	<div class='error span-24 last'>
		<?=gf('warning')?>
	</div>
	<?php endif;?>

	<?php if(hf('tips')):?>
		<div id="tips" class='notice'
     style="color:#ff5a00;font-size:14px;font-weight:bold;text-align:center;position:absolute;left:30%;z-index:100;width:40%;top:30%;
     border:solid #999 1px;border-bottom:solid #000 2px;border-right:solid #000 2px;background:#fff;padding:3px;line-height:48px;" >
		<table border=0>
			<tr>
				<td width=70> </td>
				<td >  <?php echo Yii::app()->user->getFlash('tips'); ?></td>
			</tr>
		</table>

          <?php
          Yii::app()->clientScript->registerScript(
              'myHideEffect',
              '$("#tips").animate({opacity: 0.2},
4000).fadeOut(1000);', CClientScript::POS_READY
          );
          ?>
	</div>
	<?php endif;?>

	<?php echo $content; ?>

	<div id="footer" class="span-24 last">
	<hr/>
		<div class='footer'>
		Copyright &copy; <?php echo date('Y'); ?> by UrSky.<br/>
		All Rights Reserved.<br/>
		</div>
	</div><!-- footer -->

</div><!-- page -->


</body>
</html>
